#ifndef __ARCH_UM_INCLUDE_TRAP_H__
#define __ARCH_UM_INCLUDE_TRAP_H__

#include <um.h>
#include <types.h>

int wait_stub_done(int pid);
int get_faultinfo (int pid, struct faultinfo* fi);
int nullify_syscall (int pid, struct um_pt_regs *regs);

/**
 * Umucore doesn't have the so-called 'trapframe'.
 *     This is hacked only because 'do_fork' needs it...
 */
struct trapframe {
	int (*fn)(void*);
	void* arg;
};

#endif  /* !__ARCH_UM_INCLUDE_TRAP_H__ */
